import request from '@/utils/request'

// 查询商家信息列表
export function listShopdetail(query) {
  return request({
    url: '/system/shopdetail/list',
    method: 'get',
    params: query
  })
}

// 查询商家信息详细
export function getShopdetail(shopId) {
  return request({
    url: '/system/shopdetail/' + shopId,
    method: 'get'
  })
}

// 新增商家信息
export function addShopdetail(data) {
  return request({
    url: '/system/shopdetail',
    method: 'post',
    data: data
  })
}

// 修改商家信息
export function updateShopdetail(data) {
  return request({
    url: '/system/shopdetail',
    method: 'put',
    data: data
  })
}

// 删除商家信息
export function delShopdetail(shopId) {
  return request({
    url: '/system/shopdetail/' + shopId,
    method: 'delete'
  })
}
